package net.wofly.right.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.wofly.right.domain.CustomInfo;
import net.wofly.right.repository.CustomInfoRepository;
import net.wofly.right.service.ICustomInfoService;

@Service("iCustomInfoService")
@Transactional
public class CustomInfoServiceImpl implements ICustomInfoService {
	
	@Autowired
	CustomInfoRepository customInfoRepository ;

	@Override
	public CustomInfo save(CustomInfo customInfo) {
		return customInfoRepository.save(customInfo) ;
	}

	@Override
	public CustomInfo findOne(String customInfoID) {
		return customInfoRepository.findOne(customInfoID) ;
	}

}
